<!-- GremL1N -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="Content-Language" content="ru-RU" />
    <title>Незабудка<%='' || ":#{@title}"%></title>
    <%= stylesheet_link_tag "main_style", "weekly" %>
    <%= javascript_include_tag :defaults %> 
    <%= yield :header %>
  </head>
  
  <body>
    <table id="top" border="0" cellpadding="0" cellspacing="0" height="84">
      <td id="top_left" background="images/top/diz_top_left.png">Grem NZ</td>
      <td id="top_middle" background="images/top/diz_top_middle.png">
        <div class="input_string_block">
          <%remote_form_for :note do |f| %>
            <%= f.text_field :text, :class => 'input', :id => 'new_input_string', :value => 'Запишите идею, задачу или событие', :onclick => "this.select()"%>
          <%end%>
        </div>
        <%=render :partial => "index/top"%>
        <%= yield :top%>
      </td>
      <td id="top_spacer" background="images/top/diz_top_spacer.png">&nbsp;</td>
      <td id="top_right" background="images/top/diz_top_right.png">
        <div id="logout_link">
          <% if @current_user %>
            <%=link_to ("Вход", { :controller => "sessions", :action => "new" }) %>
          <%else%>
            <%=@current_user%>
            <%=link_to( "Выйти", logout_path)%>
          <%end%>
        </div>
        <div id="notice"><%= flash[:notice]%></div>
      </td>
    </table>
    <table>
      <tr>
        <td>
          <%= yield :left%>
        </td>
        <td>
        <%= yield %>
        </td>
      </tr>
    </table>
  </body>
</html>